import { createApp } from 'vue';
import App from './App.vue';
import setupAssets from './assets/setupAssets';
import { setupStore } from './store';
import setupNaiveUI from './components/BasicComponents/naiveUI/naive-import';
import { setupRouter } from './router';

// createApp(App).use(store).use(router).mount('#app');
async function setupApp() {
    setupAssets()

    const app = createApp(App)

    // 挂载状态管理 pinia
    setupStore(app)

    setupNaiveUI(app)

    // app.use(router)
    await setupRouter(app)

    app.mount('#app')
}

setupApp()